dreamweaver.canSaveDocument()

Availability 3.0
Description Checks whether Dreamweaver can perform a Save operation on the specified document.
Arguments documentObject
The argument is the object at the root of a document's DOM tree (the value returned by dreamweaver.getDocumentDOM()).
Returns A Boolean value indicating whether the document has any unsaved changes.